﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ObjectModel.Customer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

    <% using (Html.BeginForm("Insert", "Customer")) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CorporateName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CorporateName) %>
                <%: Html.ValidationMessageFor(model => model.CorporateName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Tel) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Tel) %>
                <%: Html.ValidationMessageFor(model => model.Tel) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Cel) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Cel) %>
                <%: Html.ValidationMessageFor(model => model.Cel) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Street) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Street) %>
                <%: Html.ValidationMessageFor(model => model.Street) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Complement) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Complement) %>
                <%: Html.ValidationMessageFor(model => model.Complement) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CEP) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CEP) %>
                <%: Html.ValidationMessageFor(model => model.CEP) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Neighbourhood) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Neighbourhood) %>
                <%: Html.ValidationMessageFor(model => model.Neighbourhood) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.City) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.City) %>
                <%: Html.ValidationMessageFor(model => model.City) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.State) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.State) %>
                <%: Html.ValidationMessageFor(model => model.State) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Birthdate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Birthdate) %>
                <%: Html.ValidationMessageFor(model => model.Birthdate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Description) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Document) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Document) %>
                <%: Html.ValidationMessageFor(model => model.Document) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.MunicipalInscription) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.MunicipalInscription) %>
                <%: Html.ValidationMessageFor(model => model.MunicipalInscription) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.StateInscription) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.StateInscription) %>
                <%: Html.ValidationMessageFor(model => model.StateInscription) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ID) %>
                <%: Html.ValidationMessageFor(model => model.ID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Removed) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Removed) %>
                <%: Html.ValidationMessageFor(model => model.Removed) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

